@extends('index.user.index')
@section('navbar')
    <ol class="breadcrumb">
        <li><a href="{{url('/')}}">首页</a></li>
        <li><a href="{{url('/user')}}">用户中心</a></li>
        <li class="active">失物招领</li>
    </ol>
@endsection
@section('user-content')
    <div class="panel-heading">
        <a href="{{url('user/add-item')}}" class="btn btn-primary">发布一个失物招领</a>
    </div>
    <div class="panel-body">
        <ul class="list-group">
            @foreach($items as $item)
                <li class="list-group-item">
                    <h3 class="list-group-item-heading"><a
                                href="{{url('user/item/' . $item->id)}}">{{$item->name}}</a><span class="badge"></span>
                    </h3>

                    <p>{{$item->findLostTime()}} {{$item->address()}}</p>
                    酬金：{{$item->wanted_fee}}元
                    <span class="badge">{{$item->status()}}</span>
                </li>
            @endforeach
        </ul>
    </div>
    <?=$items->render()?>
@endsection